<div class="tree-node">
	<div class="tree-node-title">
	<input type="checkbox" name="categories[{%Id%}]" <?php if (in_array($this->CurrentContext()->Id,$this->PAGE->PageCategories)) { ?> checked="true"<?php } ?>>{% context %}</div>
	<div class="tree-node-subs">
	{%iterate Contents as node%}
	{%insert integral.category_node.tpl%}
	{%iterate%}
	</div>
</div>